﻿using Huirui.Cavan.Domain.Seedwork;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Huirui.Cavan.Domain.MainBoundedContext.SystemModule
{
    [Serializable]
    public class UserAccountProperty : Persistent
    {
        protected bool _onlyQuerySelfData;
        protected bool _cannotQueryPurchaseCostAndAmount;
        protected bool _cannotQuerySalesCostAndAmount;
        protected UserAccount _userAccount;

        public UserAccountProperty()
        { 
        }

        public UserAccountProperty(bool onlyQuerySelfData, bool cannnotQueryPurchaseCostAndAmount, bool cannotQuerySalesCostAndAmount, UserAccount userAccount)
        {
            this._onlyQuerySelfData = onlyQuerySelfData;
            this._cannotQueryPurchaseCostAndAmount = cannnotQueryPurchaseCostAndAmount;
            this._cannotQuerySalesCostAndAmount = cannotQuerySalesCostAndAmount;
            this._userAccount = userAccount;
        }

        public virtual bool OnlyQuerySelfData
        {
            get
            {
                return _onlyQuerySelfData;
            }
            set
            {
                _onlyQuerySelfData = value;
            }
        }

        public virtual bool CannotQueryPurchaseCostAndAmount
        {
            get
            {
                return _cannotQueryPurchaseCostAndAmount;
            }
            set
            {
                _cannotQueryPurchaseCostAndAmount = value;
            }
        }

        public virtual bool CannotQuerySalesCostAndAmount
        {
            get
            {
                return _cannotQuerySalesCostAndAmount;
            }
            set
            {
                _cannotQuerySalesCostAndAmount = value;
            }
        }

        public virtual UserAccount UserAccount
        {
            get
            {
                return _userAccount;
            }
            set
            {
                _userAccount = value;
            }
        }
    }
}
